package builders;

import backbone.IBuildable;
import entities.MousePoint;
import java.util.LinkedList;
import main.Simulation;


/**
 * 
 * @author Paul
 * @author Lance
 */
public class MouseMassBuilder extends PointObjectBuilder {

    @Override
    public void build(Simulation sim, LinkedList<Double> properties) {
        double x = properties.poll();
        double y = properties.poll();
        MousePoint m = new MousePoint(x, y);
        sim.addPaintable(m);
        sim.addUpdatable(m);
        sim.addPointObject(m);
        add(m);
    }
}
